//
//  MessageListViewModel.h
//  carcareIOS
//
//  Created by ileo on 16/9/5.
//  Copyright © 2016年 chezheng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MessageCenterManager.h"
#import "BaseViewModel.h"
#import "MessageListNormalViewController.h"
#import "MessageCarListViewController.h"

#define keyType @"type"
#define keyInfo @"info"
#define keyIsFirst @"isFirst"
#define keyIsLast @"isLast"

#define typeDate @"date"
#define typeModel @"model"

@interface MessageListViewModel : BaseViewModel<MessageListNormalViewModelDelegate>

-(instancetype)initWithMessageCenterModel:(MessageCenterModel *)model;

@property (nonatomic, copy) NSArray<MessageModel *> *messageModels;
@property (nonatomic, assign) NSInteger firstID;//最新的ID
@property (nonatomic, assign) NSInteger lastID;//最后的ID
@property (nonatomic, assign) MessageCenter_Type type;//通知类型

@property (nonatomic, copy) NSArray<NSDictionary *> *carMessages;//用于车辆消息

@end
